import {Injectable,Inject} from '@nestjs/common';

@Injectable()
export class LoggerService {
    constructor(@Inject('SUFFIX') private SUFFIX: string) {
        console.log('LoggerService_SUFFIX',this.SUFFIX);
    }
    log(message: string) {
        console.log('logger.service', message);
    }
}

@Injectable()
export class LoggerServiceTwo {
    constructor(@Inject('SUFFIX') private SUFFIX: string) {
        console.log('LoggerServiceTwo_SUFFIX',this.SUFFIX);
    }
    log(message: string) {
        console.log('LoggerServiceTwo', message);
    }
}

@Injectable()
export class LoggerServiceThree {
    constructor(private prefix:string) {
        console.log('LoggerServiceThree_arg',this.prefix);
    }
    log(message: string) {
        console.log('LoggerServiceThree', message);
    }
}

@Injectable()
export class LoggerServiceFactory {
    constructor(private prefix?:string,private suffix?:string) {
        console.log('LoggerServiceFactory args:',this.prefix,this.suffix);
    }
    log(message: string) {
        console.log('LoggerServiceFactory', message);
    }
}
